#include #include using namespace std; const int MATRIX_COUNT = 25; const int ROW_COUNT = 4; const int COLUMN_COUNT = 4; void getMatrix(int matrices[][ROW_COUNT][COLUMN_COUNT], int i) { cout << "Enter matrix " << i + 1 << ":"; for(int row = 0; row < ROW_COUNT; row++) { cout << " Row " << row + 1 << "? "; for(int column = 0; column < COLUMN_COUNT; column++) { cin >> matrices[i][row][column]; } } } void getMatrix(int matrix[][COLUMN_COUNT]) { for(int row = 0; row < ROW_COUNT; row++) { cout << " Row " << row + 1 << "? "; for(int column = 0; column < COLUMN_COUNT; column++) { cin >> matrix[row][column]; } } } void main() { int matrices[MATRIX_COUNT][ROW_COUNT][COLUMN_COUNT]; int matrixCount = 0; int initialMatrices = 0 ; cout << "How many initial matrices?"; cin >> initialMatrices; for(int i = 0; i < initialMatrices; i++) { //getMatrix(matrices, i); cout << "Enter matrix " << i + 1 << ":"; getMatrix(matrices[i]); matrixCount++; } }